﻿@model VOD.Models.Notice
@using VOD.Helpers
<h3>@Model.NoticeTitle</h3>
<p class="detail">@Html.Truncate(Model.NoticeContent,92) <a href="javascript:;" title="查看公告详细" id="btnNoticeDetails">[详细]</a></p>
<p class="time">@String.Format("{0:yyyy-MM-dd}",Model.AddDate)</p>
<div id="dialogNotice" title="公告详情" style="display:none;">
    <p style="text-indent:2em;">@Model.NoticeContent</p>
    <p style="text-align:right;"><br />@Model.AddDate.ToString("yyyy-MM-dd")</p>
</div>
<script type="text/javascript">
    $(function () {
        $("#dialogNotice").dialog({
            autoOpen:false,
        });
        $("#btnNoticeDetails").click(function(){
            $("#dialogNotice").dialog("open");
        });
    });
</script>